Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spiderfying observations #292

Merged
merged 3 commits into from
Jul 17, 2024
Merged

Spiderfying observations #292

merged 3 commits into from
Jul 17, 2024

Conversation

damianooldoni
Copy link
Member

@damianooldoni damianooldoni commented Jul 17, 2024

This PR solves #288

In particular:

  • observations with same lat/lon are now spiderfied (see screenshot below)
  • spiderfying disappears while zooming out/in, moving the background map or clicking anywhere else
  • spiderfying disappears while clicking on another marker not belonging to the spiderfied group. This action willl open a new spider group if it is the case or just the correpsondent pop up.
    Spiderfying is applied to all observations layers, i.e. new observations, historic observations and absences (still empty).

A technical detail to take in mind: the OverlappingMarkerSpiderfier library is designed to work with L.marker instances, not L.circleMarker. So, I needed to add a circle-like custom icon to css style.

New observations

image

Historic observations

image

All points shown immediately (no need to click multiple times)
Unspiderfying while zooming out, moving the pane or clicking anywhere else.
@damianooldoni damianooldoni self-assigned this Jul 17, 2024
@damianooldoni damianooldoni merged commit b2cd426 into main Jul 17, 2024
@damianooldoni damianooldoni deleted the spiderfying branch July 17, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant